package com.atguigu.tingshu.order.mapper;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    Long getItemTypeAlbumAndVipIsPadding(@Param("userId") Long userId, @Param("itemType") String itemType, @Param("itemId") Long itemId);

    List<Long> getItemTypeTrackIsPadding(@Param("userId") Long userId, @Param("itemType") String itemType);


    int updateOrderStatus(@Param("orderNo") String orderNo, @Param("userId") Long userId);

    int cancelOrder(@Param("orderNo") String orderNo);
}

